package com.hzdy.master.entity.OID;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hzdy.master.entity.Model;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LALA
 * Date: 2019-03-11
 * Time: 9:31
 */

@Data
@Entity
@Table(name = "oid_type")
public class OIDType extends Model implements Serializable {


    @OneToMany(
            cascade = CascadeType.ALL,
            fetch = FetchType.EAGER,
            mappedBy = "oidType"
    )
    @JsonIgnore
    private List<OID> oids;
}
